﻿namespace CKS.PLC.Action
{
    /// <summary>
    /// 测试动作
    /// </summary>
    public class Test00Action : PLCAction
    {
        public Test00Action(DecodeValue _value) : base(_value)
        {
        }
        //测试信号，
        public override void Execute()
        {
            var f =Value.LinkPositions.First();
            if (f != null) {
                var code = ReadString(f);
                AckWriteInt16(Value.Position,0);
                WriteString(f,$"xsxs{new Random().Next(0,9)}");
            }
        }
    }
}
